package com.example.eduservice.service.fallback;

import com.example.common.commonsutils.R;
import com.example.eduservice.service.UCenterFeignService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @Author:tjf
 * @Description:
 */
@Component
public class UCenterFeignServiceFallback implements UCenterFeignService {
    @Override
    public R getUserInfoByToken(@RequestHeader("token") String token) {
        return R.error().message("会员服务异常，请联系工作人员。");
    }

    @Override
    public R getMemberInfoById(String id) {
        return R.error().message("会员服务异常，请联系工作人员。");
    }
}
